<!-- Author:Rain -->
<template>
   <div class="hh">
    <h1>孙子组件</h1>
    <p>这里是将要填充的数据：{{ user }}<br>{{ user2 }}</p>
   </div>
</template>

<script setup lang="ts">
import {inject} from "vue"
import { CurUserKey,AuthUserKey } from "@/constants/injection-key.ts"
const user=inject(CurUserKey)
const user2=inject(AuthUserKey)
</script>

<style scoped>
.hh{
    background-color: brown;
}
</style>